import { Button } from '@/components/ui/button';
import { SendIcon } from '@/components/Icons';

interface TaskSubmitProps {
  handleSubmit: () => void;
  isDisabled: boolean;
}

export const TaskSubmit = ({ handleSubmit, isDisabled }: TaskSubmitProps) => (
  <Button disabled={isDisabled} variant='ghost' className='p-1 hover:bg-transparent hover:text-slate-400 text-slate-700 ml-auto' onClick={handleSubmit}>
    <SendIcon size={18} />
  </Button>
);
